package com.hdax.easybuy.api.orderAPI;

import com.hdax.easybuy.entity.Order;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping(value = "/providerOrder")
@FeignClient(value = "easybuy-database-provider")
public interface OrderServieClient {

    @RequestMapping("/getAllOrder")
    public List<Order> queryAllOrder();

    @RequestMapping("/getOrderByUserId/{userid}")
    public List<Order> getOrderByUserId(@PathVariable("userid")int userid);
}
